﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Employeer/Employeer.master" Title="npljobs.com || Posted Jobs"
    CodeFile="PostedJobs.aspx.cs" Inherits="Employeer_PostedJobs" %>

<asp:Content ID="contentBody" ContentPlaceHolderID="MainContent" runat="server">

    <%: Styles.Render("~/EmployeerTabStyles") %>
    <script src="../Scripts/jquery-ui.min.js"></script>
    <script>
        var delConfirmed = false;
        function ConfirmJobPublish(ctrl) {            
            var status = $(ctrl).children().html();
            if (status.trim() == 'Publish this Job') {
                var jobTitle = $(ctrl).prev().val();
                //return confirm('Do you want to Publish (' + jobTitle + ')?');
                if (!delConfirmed) {
                    $('body').append("<div id='dialog-confirm' title='Publish Confirmation'><p style='margin-top: 10px;'>Do you want to Publish ( " + jobTitle + " ) ?</p></div>");
                    $("#dialog-confirm").dialog({
                        resizable: false,
                        appendTo: "form",
                        width: 370,
                        modal: true,
                        close: function (event, ui) { $('body').find('#dialog-confirm').remove(); },
                        buttons: {
                            "Publish": function () {
                                $(this).dialog("close");
                                delConfirmed = true;
                                if (ctrl)
                                    ctrl.click();
                            },
                            Cancel: function () {
                                $(this).dialog("close");
                            }
                        }
                    });
                    return delConfirmed;
                }
            }
            else
                return false;            
        }

        function ConfirmJobFreePublish(ctrl) {
            var jobTitle = $(ctrl).prev().val();
            //return confirm('Do you want to Publish (' + jobTitle + ')?');
            if (!delConfirmed) {
                $('body').append("<div id='dialog-confirm' title='Publish Confirmation'><p style='margin-top: 10px;'>Do you want to Publish ( " + jobTitle + " ) ?</p></div>");
                $("#dialog-confirm").dialog({
                    resizable: false,
                    appendTo: "form",
                    width: 370,
                    modal: true,
                    close: function (event, ui) { $('body').find('#dialog-confirm').remove(); },
                    buttons: {
                        "Publish": function () {
                            $(this).dialog("close");
                            delConfirmed = true;
                            if (ctrl)
                                ctrl.click();
                        },
                        Cancel: function () {
                            $(this).dialog("close");
                        }
                    }
                });
                return delConfirmed;
            }
        }

        function setLatestJobsCount() {
            $.ajax({
                type: "POST",
                url: "PostedJobs.aspx/GetLatestJobsCount",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                //async: false,
                success: function (msg) {
                    var obj = msg.d;
                    $("span[for='LastestJobAdd']").html('Latest Jobs (' + obj + ')');
                },
                error: function (data, status, jqXHR) {
                }
            });
        }

        function setDraftedJobsCount() {
            $.ajax({
                type: "POST",
                url: "PostedJobs.aspx/GetDraftedJobsCount",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                //async: false,
                success: function (msg) {
                    var obj = msg.d;
                    $("span[for='DraftedJob']").html('Drafted Jobs (' + obj + ')');
                },
                error: function (data, status, jqXHR) {
                }
            });
        }

        function setArchivedJobsCount() {
            $.ajax({
                type: "POST",
                url: "PostedJobs.aspx/GetArchivedJobsCount",
                data: JSON.stringify({}),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                //async: false,
                success: function (msg) {
                    var obj = msg.d;
                    $("span[for='ArchivedJob']").html('Archived Jobs (' + obj + ')');
                },
                error: function (data, status, jqXHR) {
                }
            });
        }

        var x = -1;
        var y = -1;
        function ShowActionsMenu(e, ctrl, a) {
            $('div[id^="actionContextMenu_"]').hide("slow");
            $('div[id^="actionArchivedContextMenu_"]').hide("slow");
            var actionContextMenu = $(ctrl);
            if (actionContextMenu != null && actionContextMenu.is(":visible")) {
                actionContextMenu.hide("slow");
            }
            else {
                var position = $(a).position();
                x = position.left + 20;
                y = position.top + 20;
                actionContextMenu.css({ 'top': y, 'left': x, 'position': 'absolute', 'width': '180px' });
                actionContextMenu.show("slow");
            }
            return false;
        }

        $(document).click(function (e) {
            var target = $(e.target);
            var position = $('#' + target.attr('id')).position();
            if (position != null && x != position.left && y != position.top) {
                $('div[id^="actionContextMenu_"]').hide("slow");
                $('div[id^="actionArchivedContextMenu_"]').hide("slow");
            }
        });

        function InIEvent() {
            setLatestJobsCount();
            setDraftedJobsCount();
            setArchivedJobsCount();
            delConfirmed = false;
        }
        $(document).ready(InIEvent);

        $(function () {
            
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(InIEvent);
            
            setLatestJobsCount();
            setDraftedJobsCount();
            setArchivedJobsCount();

            $("#<%=btnPostNewJobs.ClientID %>").click(function (e) {
                window.location = "PostNewJobs.aspx";
            });
        });
    </script>
    <div class="all-jobs-page">
        <div id="postnewbutton" style="float: left; display: block; width: 100%; text-align: right; display: none;">
            <asp:Button runat="server" Text="Post New Jobs" ID="btnPostNewJobs" OnClientClick="return false;"
                CssClass="GreenCommandStyle" Style="width: 110px;" />
        </div>
        <div id="postedjobstitle" class="RowBlockStyle row-block-width orange-gradiant" style="margin-bottom: 20px;">
            <h3 class="panel-title text-center">All Posted Jobs</h3>
        </div>
        <div class="job-details">
            <asp:UpdateProgress ID="uProgress" AssociatedUpdatePanelID="upJobsList" runat="server" DisplayAfter="1">
                <ProgressTemplate>
                    <div class="divWaiting">
                        <img src="../Images/please_wait.gif" alt="Please wait..." />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="upJobsList" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                <ContentTemplate>
                    <div class="tabs tabs-style-topline">
                        <nav>
                            <ul>
                                <li><a href="#section-topline-1"><span for="LastestJobAdd">Latest Jobs</span></a></li>
                                <li><a href="#section-topline-2"><span for="DraftedJob">Drafted Jobs</span></a></li>
                                <li><a href="#section-topline-3"><span for="ArchivedJob">Archived Jobs</span></a></li>
                            </ul>
                        </nav>
                        <!-- /content -->
                        <div class="content-wrap">
                            <section id="section-topline-1">
                                <asp:UpdatePanel ID="upLastestJobAdd" runat="server">
                                    <ContentTemplate>
                                        <div class="row all-jobs-title">
                                            <div class="col-md-10 col-md-10-extra"># Job Title</div>
                                            <div class="col-md-2">Actions</div>
                                        </div>
                                        <asp:DataList ID="gvLastestJobAdd" runat="server" RepeatColumns="1" RepeatLayout="Table"
                                            CellSpacing="0" CellPadding="0" Width="100%" RepeatDirection="Vertical" Font-Size="12pt"
                                            OnItemCommand="gvLastestJobAdd_ItemCommand">
                                            <ItemTemplate>
                                                <!-- Post Job 1-->
                                                <asp:HiddenField ID="txtJobID" runat="server" Value='<%# Eval("JobID")%>'></asp:HiddenField>
                                                <div class="row orange-body-bg posted-job">
                                                    <div class="row">
                                                        <div class="col-md-10 col-md-10-extra">
                                                            <h5><%#Container.ItemIndex+1 %>. <%# Eval("JobTitle")%></h5>
                                                        </div>
                                                        <div class="col-md-2 pull-right col-md-2-extra">
                                                            <!--Action Dropdown-->
                                                            <div class="dropdown">
                                                                <a href="#" class="dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
                                                                    <img src="../img/action-dropdown.png" width="22" height="22">
                                                                </a>
                                                                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                                                    <li role="presentation">
                                                                        <a <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%> role="menuitem" tabindex="-1" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit" id="aEdit">Edit</a>
                                                                    </li>
                                                                    <li role="presentation">
                                                                        <a <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%> role="menuitem" tabindex="-1" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">Repost</a>
                                                                    </li>
                                                                    <li role="presentation">
                                                                        <asp:LinkButton ID="lnkLatestArchive" runat="server" CommandName='<%# IsArchiveDeadlineOver(Container.DataItem) ? ("ActionArchiveImageButtonClick") : ""%>' role="menuitem" TabIndex="-1"
                                                                            CssClass='<%# MakeArchiveActive(Container.DataItem) ? ("DisableElement") : ""%>'>
                                                                            Archive
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                    <li role="presentation">
                                                                        <asp:LinkButton ID="lnkLatestPublishLater" runat="server" CommandName='<%# MakePublishLaterActive(Container.DataItem) ? ("ActionPublsishLaterImageButtonClick") : ""%>' role="menuitem" TabIndex="-1"
                                                                            CssClass='<%# !MakePublishLaterActive(Container.DataItem) ? ("DisableElement") : ""%>'>
                                                                            Publish Later
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                    <li role="presentation">
                                                                        <input type="hidden" value="<%# Eval("JobTitle")%>" />
                                                                        <asp:LinkButton ID="lnkLatestFreeToPublish" runat="server" CommandName='<%# MakePublishLaterActive(Container.DataItem) ? ("ActionPostFreePublishImageButtonClick") : ""%>' role="menuitem" TabIndex="-1"
                                                                            CssClass='<%# !MakePublishLaterActive(Container.DataItem) ? ("DisableElement") : ""%>' OnClientClick="return ConfirmJobFreePublish(this);">
                                                                            Free To Publish
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                            <!--Action Dropdown-->
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="status">
                                                            <ul class="list-inline">
                                                                <li><strong>Status:</strong>
                                                                    <span>
                                                                        <input type="hidden" value="<%# Eval("JobTitle")%>" />
                                                                        <asp:LinkButton ID="lnkLatestPending" runat="server" Enabled='<%# GetJobStatus(Container.DataItem) ? true: false %>'
                                                                            CommandName='<%# !IsDeadlineOver(Container.DataItem) ? ("LatestPendingImageButtonClick") : ""%>' OnClientClick="javascript:return ConfirmJobPublish(this)">
                                                                            &nbsp;<%# GetStatus(Container.DataItem) %>
                                                                        </asp:LinkButton>
                                                                    </span>
                                                                </li>
                                                                <li>|</li>
                                                                <li><strong>Start:</strong> <%# Eval("PostedDate", "{0:dd MMMM-yyyy}")%></li>
                                                                <li>|</li>
                                                                <li><strong>End:</strong> <%# Eval("ApplicationDateline", "{0:dd MMMM-yyyy}")%></li>
                                                            </ul>
                                                        </div>

                                                        <div class="icon-nav">
                                                            <ul class=" list-inline">
                                                                <a <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%> href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit">
                                                                    <img src="../img/all-job-edit.png" width="12" height="12"></a>
                                                                <li <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%>><a class="bold" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit">Edit</a></li>
                                                                <a <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%> href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">
                                                                    <img src="../img/all-job-repost.png" width="12" height="14"></a>
                                                                <li <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%>><a class="bold" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">Repost</a></li>
                                                                <a <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <img src="../img/all-job-archive.png" width="16" height="11"></a>
                                                                <li <%# MakeArchiveActive(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <asp:LinkButton ID="LinkButton2" CssClass="bold" runat="server" CommandName='<%# IsArchiveDeadlineOver(Container.DataItem) ? ("ArchiveImageButtonClick") : ""%>'>                                                        
                                                                        Archive
                                                                    </asp:LinkButton>
                                                                </li>
                                                                <a <%# !MakePublishLaterActive(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <img src="../img/all-job-publish.png" width="15" height="16"></a>
                                                                <li <%# !MakePublishLaterActive(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <asp:LinkButton ID="lnkBtnPublsishLater" runat="server" CssClass="bold" CommandName='<%# MakePublishLaterActive(Container.DataItem) ? ("PublsishLaterImageButtonClick") : ""%>'>
                                                                        Publish Later
                                                                    </asp:LinkButton>
                                                                </li>
                                                                <a href="#" style="display: none;">
                                                                    <img src="../img/all-job-view.png" width="18" height="14"></a>
                                                                <li style="display: none;"><a class="bold" href="#">View This Job</a></li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                                <!-- Post Job 1-->
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <div id="divLatestPaging" runat="server" class="row text-center arrow-icon-bottom">
                                            <span>
                                                <asp:LinkButton ID="lnkBtnPrev" runat="server" Text="&lt;&lt; Prev" OnClick="lnkBtnPrev_OnClick"></asp:LinkButton>
                                            </span>
                                            <span>
                                                <asp:LinkButton ID="lnkBtnNext" runat="server" Text="Next &gt;&gt;" OnClick="lnkBtnNext_OnClick"></asp:LinkButton>
                                            </span>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </section>
                            <section id="section-topline-2">
                                <asp:UpdatePanel ID="upDraftedJob" runat="server">
                                    <ContentTemplate>
                                        <div class="row all-jobs-title">
                                            <div class="col-md-10 col-md-10-extra"># Job Title</div>
                                            <div class="col-md-2">Actions</div>
                                        </div>
                                        <asp:DataList ID="gvDraftedJob" runat="server" RepeatColumns="1" RepeatLayout="Table"
                                            CellSpacing="0" CellPadding="0" Width="100%" RepeatDirection="Vertical" Font-Size="12pt"
                                            OnItemCommand="gvDraftedJob_ItemCommand">
                                            <ItemTemplate>
                                                <asp:TextBox ID="txtJobID" runat="server" Text='<%# Eval("JobID")%>' Visible="false"></asp:TextBox>
                                                <div class="row orange-body-bg posted-job">
                                                    <div class="row">
                                                        <div class="col-md-10 col-md-10-extra">
                                                            <h5><%#Container.ItemIndex+1 %>. <%# Eval("JobTitle")%></h5>
                                                        </div>
                                                        <div class="col-md-2 pull-right col-md-2-extra">
                                                            <!--Action Dropdown-->
                                                            <div class="dropdown">
                                                                <a href="#" class="dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
                                                                    <img src="../img/action-dropdown.png" width="22" height="22">
                                                                </a>
                                                                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit" id="aEdit">Edit</a></li>
                                                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">Repost</a></li>
                                                                    <li role="presentation">
                                                                        <asp:LinkButton ID="LinkButton3" runat="server" CommandName='<%# !IsDeadlineOver(Container.DataItem) ? ("ActionArchiveDraftedImageButtonClick") : ""%>' role="menuitem" TabIndex="-1"
                                                                            CssClass=' <%# MakeArchiveActive(Container.DataItem) ? ("DisableElement") : ""%>'>
                                                                            Archive
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                    <li role="presentation" class=" <%# !MakePublishLaterActive(Container.DataItem) ? ("DisableElement") : ""%>">
                                                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName='<%# MakePublishLaterActive(Container.DataItem) ? ("ActionReadyProcessImageButtonClick") : ""%>' role="menuitem" TabIndex="-1">
                                                                            Ready to Process
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                    <li role="presentation">
                                                                        <asp:LinkButton ID="lnkActionDeleteJobImageButtonClick" runat="server" CommandName="ActionDeleteJobImageButtonClick">
                                                        
                                                            Delete
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                            <!--Action Dropdown-->
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="status">
                                                            <ul class="list-inline">
                                                                <li><strong>Status:</strong> <span><a <%# IsDeadlineOver(Container.DataItem) ? ("href=#") : "style='pointer-events: none;'"%>>&nbsp;<%# GetDraftedStatus(Container.DataItem)%>
                                                                </a></span></li>
                                                                <li>|</li>
                                                                <li><strong>Start:</strong> <%# Eval("PostedDate", "{0:dd MMMM-yyyy}")%></li>
                                                                <li>|</li>
                                                                <li><strong>End:</strong> <%# Eval("ApplicationDateline", "{0:dd MMMM-yyyy}")%></li>
                                                            </ul>
                                                        </div>

                                                        <div class="icon-nav">
                                                            <ul class=" list-inline">
                                                                <a href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit">
                                                                    <img src="../img/all-job-edit.png" width="12" height="12"></a>
                                                                <li><a class="bold" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit">Edit</a></li>
                                                                <a href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">
                                                                    <img src="../img/all-job-repost.png" width="12" height="14"></a>
                                                                <li><a class="bold" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">Repost</a></li>
                                                                <a <%# IsDeadlineOver(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <img src="../img/all-job-archive.png" width="16" height="11"></a>
                                                                <li <%# MakeArchiveActive(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <asp:LinkButton ID="LinkButton2" runat="server" CssClass="bold" CommandName='<%# !IsDeadlineOver(Container.DataItem) ? ("ArchiveDraftedImageButtonClick") : ""%>'>
                                                        Archive
                                                                    </asp:LinkButton>
                                                                </li>
                                                                <a <%# !MakePublishLaterActive(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <img src="../img/all-job-publish.png" width="15" height="16"></a>
                                                                <li <%# !MakePublishLaterActive(Container.DataItem) ? ("class=DisableElement") : ""%>>
                                                                    <asp:LinkButton ID="lnkBtnReadyProcess" runat="server" CssClass="bold" CommandName='<%# MakePublishLaterActive(Container.DataItem) ? ("ReadyProcessImageButtonClick") : ""%>'>
                                                                        Ready to Process
                                                                    </asp:LinkButton>
                                                                </li>
                                                                <a href="#">
                                                                    <img src="../img/all-job-delete.png" width="18" height="14"></a>
                                                                <li>
                                                                    <asp:LinkButton ID="lnkDeleteJobImageButtonClick" runat="server" CssClass="bold" CommandName="DeleteJobImageButtonClick">
                                                    
                                                        Delete
                                                                    </asp:LinkButton>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <div id="divDraftedPaging" runat="server" class="row text-center arrow-icon-bottom">
                                            <span>
                                                <asp:LinkButton ID="lnkBtnDraftedJobPrev" runat="server" Text="&lt;&lt; Prev" OnClick="lnkBtnDraftedJobPrev_OnClick"></asp:LinkButton>
                                            </span>
                                            <span>
                                                <asp:LinkButton ID="lnkBtnDraftedJobNext" runat="server" Text="Next &gt;&gt;" OnClick="lnkBtnDraftedJobNext_OnClick"></asp:LinkButton>
                                            </span>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </section>
                            <section id="section-topline-3">
                                <asp:UpdatePanel ID="upArchivedJob" runat="server">
                                    <ContentTemplate>
                                        <div class="row all-jobs-title">
                                            <div class="col-md-10 col-md-10-extra"># Job Title</div>
                                            <div class="col-md-2">Actions</div>
                                        </div>
                                        <asp:DataList ID="gvArchiveJob" runat="server" RepeatColumns="1" RepeatLayout="Table"
                                            CellSpacing="0" CellPadding="0" Width="100%" RepeatDirection="Vertical" Font-Size="12pt"
                                            OnItemCommand="ArchiveJob_ItemCommand">
                                            <ItemTemplate>
                                                <asp:HiddenField ID="txtJobID" runat="server" Value='<%# Eval("JobID")%>'></asp:HiddenField>
                                                <div class="row orange-body-bg posted-job">
                                                    <div class="row">
                                                        <div class="col-md-10 col-md-10-extra">
                                                            <h5><%#Container.ItemIndex+1 %>. <%# Eval("JobTitle")%></h5>
                                                        </div>
                                                        <div class="col-md-2 pull-right col-md-2-extra">
                                                            <!--Action Dropdown-->
                                                            <div class="dropdown">
                                                                <a href="#" class="dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
                                                                    <img src="../img/action-dropdown.png" width="22" height="22">
                                                                </a>
                                                                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit" id="aEdit">Edit</a></li>
                                                                    <li role="presentation"><a role="menuitem" tabindex="-1" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">Repost</a></li>
                                                                    <li role="presentation">
                                                                        <asp:LinkButton ID="lnkActionDeleteArchivedJobImageButtonClick" runat="server" CommandName="ActionDeleteArchivedJobImageButtonClick">
                                                            Delete
                                                                        </asp:LinkButton>
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                            <!--Action Dropdown-->
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="status">
                                                            <ul class="list-inline">
                                                                <li><strong>Status:</strong> <span><a <%# IsDeadlineOver(Container.DataItem) ? ("href=#") : "style='pointer-events: none;'"%>>&nbsp;<%# GetStatus(Container.DataItem) %>
                                                                </a></span></li>
                                                                <li>|</li>
                                                                <li><strong>Start:</strong> <%# Eval("PostedDate", "{0:dd MMMM-yyyy}")%></li>
                                                                <li>|</li>
                                                                <li><strong>End:</strong> <%# Eval("ApplicationDateline", "{0:dd MMMM-yyyy}")%></li>
                                                            </ul>
                                                        </div>

                                                        <div class="icon-nav">
                                                            <ul class=" list-inline">
                                                                <a href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit">
                                                                    <img src="../img/all-job-edit.png" width="12" height="12"></a>
                                                                <li><a class="bold" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Edit">Edit</a></li>
                                                                <a href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">
                                                                    <img src="../img/all-job-repost.png" width="12" height="14"></a>
                                                                <li><a class="bold" href="PostNewJobs.aspx?JobId=<%# Eval("JobId")%>&Action=Repost">Repost</a></li>
                                                                <a href="#">
                                                                    <img src="../img/all-job-delete.png" width="18" height="14"></a>
                                                                <li>
                                                                    <asp:LinkButton ID="lnkDeleteArchiveJobImageButtonClick" runat="server" CssClass="bold" CommandName="DeleteArchiveJobImageButtonClick">
                                                    
                                                        Delete
                                                                    </asp:LinkButton>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <div id="divArchivePaging" runat="server" class="row text-center arrow-icon-bottom">
                                            <span>
                                                <asp:LinkButton ID="lnkBtnArchivedJobPrev" runat="server" Text="&lt;&lt; Prev" OnClick="lnkBtnArchivedJobPrev_OnClick"></asp:LinkButton>
                                            </span>
                                            <span>
                                                <asp:LinkButton ID="lnkBtnArchivedJobNext" runat="server" Text="Next &gt;&gt;" OnClick="lnkBtnArchivedJobPrev_OnClick"></asp:LinkButton>
                                            </span>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </section>
                        </div>
                        <!-- /content -->
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>    
    <script src="../Scripts/cbpFWTabs.js"></script>
    <script>
        (function () {

            [].slice.call(document.querySelectorAll('.tabs')).forEach(function (el) {
                new CBPFWTabs(el);
            });
        })();
    </script>
</asp:Content>
